<?php
namespace app\serverfund\service\fund;

use \app\manage\service\ApiBase;
/**
 * 用户的资金账户日志
 * @author adv30 <adv30@126.com> 2017年6月21日16:48:41
 */
class FundOptionLog extends ApiBase
{
    protected $fundOptionLogValidate = '\app\serverfund\validate\FundOptionLog';
    protected $fundOptionLogLogic = '\app\serverfund\logic\FundOptionLog';
    // 获取所资金操作日志(分页)
    public function list(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'type'=>'', 'keywords'=>'', 'startTime'=>'', 'endTime'=>'']);
        return $this->oneStepRun($data, 'serverfund/fund/FundOptionLog/list');
    }
    // 获取某些user_ids的的资金操作日志(分页)
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->oneStepRun($data, 'serverfund/fund/FundOptionLog/listByUserIds', 'listByUserIds');
    }
    // 获取某个用户某个状态的资金操作日志分页数据
    public function listByUserType(): array
    {
        $data = $this->haveIssetReceiveData(['user_id'=>'0', 'type'=>' ', 'page'=>'1', 'list_rows'=>'']);
        return $this->oneStepRun($data, 'serverfund/fund/FundOptionLog/listByUserType', 'listByUserType');
    }
    /*获取管理员冻结资金、积分、艺货币的原因记录*/
    public function freezeOperateReason(): array 
    {
        $data = $this->haveIssetReceiveData(['page'=>1, 'list_rows'=>15, 'keywords'=>'', 'type'=>'']);
        return $this->oneStepRun($data, 'serverfund/fund/FundOptionLog/freezeOperateReason', 'freezeOperateReason');
    }
    /*获取某条原因记录相关的解冻详情*/
    public function reasonUnfreezeInfo(): array 
    {
        $data = $this->haveIssetReceiveData(['obj_id'=>0, 'user_id'=>0, 'app_id'=>0, 'action'=>' ']);
        return $this->oneStepRun($data, 'serverfund/fund/FundOptionLog/reasonUnfreezeInfo', '');
    }
}